<?php
if(empty($_COOKIE['xuehao'])){
    echo "<script>window.location.href='login.php';</script>";
    exit;
}
include "sql.php";
$xuehao=$_COOKIE['xuehao'];
$cha=$con->query("select * from user where xuehao='{$xuehao}'");
$res=array();
foreach($cha as $val){
    $res=$val;
}
if($res['tel']==''){
    $biaoshi="0";
}
$biaoshi=$res['name'];
?>
<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>取快递</title>
    <meta name="viewport"
        content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
    <link rel="shortcut icon" type="image/x-icon"
        href="https://static.0xiao.com/Public/release/img/favicon-6f57f312d4.ico">
    <link rel="stylesheet" type="text/css" href="asset/base-b25a49b76b.css">
    <link rel="stylesheet" type="text/css" href="asset/home-893f3586a9.css">
    <link rel="stylesheet" type="text/css" href="asset/index_iconfont-e17e724708.css">

    <script src="asset/jquery-d9a4656261.3.2.1.min.js.下载"></script>
    <link rel="stylesheet" type="text/css" href="asset/express-791a7eba15.css">
</head>

<body data-mobile="1" data-iphone="0" data-weixin="0" data-two_url="xjistedu" data-team_logo=""
    data-badge="/0xiao/upload/site_badge/image/20181002/5bb31a1825077.jpg" data-is_vip="0">
        <table class="mb10 font16 table_tag" style="background: none;">
                <td data-tag="retrieve">代取快递</td>
            </table>
          
    <form action="order.php" method="post">

        <div id="express_retrieve" style="">
            <div class="task_addr"
                style="width: 90%;margin: 0 auto; margin-top: 20px;background: #33dbdf;border-radius: 10px">
                <span class="task_addr_ico" style="background:#2196f3" id="retrieve_reach_addr" data-id="362757"
                    data-user_name="石国泰" data-user_tel="17599566047" data-user_tag="80.211353,41.232922">送</span>
                <a class="task_addr_txt"
                    id="xiugai">
                    <b id="biaoshi"><?php echo $biaoshi; ?></b>&nbsp;&nbsp;/&nbsp;&nbsp;<?php echo $res['tel']; ?> <p class="ove arearess">
                        新疆大学科学技术学院阿克苏校区</p>
                    <p class="ove address">学生宿舍-<?php echo $res['lou']; ?>号楼-<?php echo $res['sushe']; ?></p>
                </a>
            </div>
            <div class="task_addr"
                style="width: 90%;margin: 0 auto; margin-top: 20px;background: #33dbdf;border-radius: 10px">
                <span class="task_addr_ico" style="background:#03a9f4" id="start_addr">取</span>
                <select
                    style="margin-left:8px;width:calc(100% - 50px);height:60px;border:none;font-weight:bold;background: none;"
                    id="point_id" class="take" name="point_id">
                    <option value="">选择取件点</option>
                    <option value="2355" data-vip_type="" data-price="" data-pay_count="">南大门快递中心</option>
                    <option value="4574" data-vip_type="" data-price="" data-pay_count="">温宿</option>
                </select>
                <p class="right red center" style="margin-top:15px;width:65px;display:none"></p>
            </div>

            <p class="mt10 bgf ovh" 
                style="padding-left: 10px; ;width: 95%;margin: 0 auto; margin-top: 20px;background: #e8d396;border-radius: 10px;line-height: 58px">
                取件短信：
                <input type="text" name="xinxi" class="font14 remark"
                    style="width:calc(100% - 95px);height:24px;background: none;border: none;" placeholder="取件短信，建议复制粘贴进来">
            </p>
            <p class="bgf ovh"
                style="width: 95%;margin: 0 auto; margin-top: 20px;background: #9e9e9e;border-radius: 5px;padding-left: 10px;">
                备注信息：
                <input type="text" name="beizhu" class="font14 remark"
                    style="width:calc(100% - 95px);height:24px;background: none;border: none;padding: 10px 0 10px 0;" placeholder="时间、留言、代付等">
            </p>

            <div class="bgf ovh"
                style="width: 95%;margin: 0 auto; margin-top: 20px;background: #03a9f482;border-radius: 5px;padding-left: 10px">
                规格：<select name="guige" id="guige" style="background: none; border: none;width: 100%;padding-bottom: 5px">
                    <option value="">请选择</option>
                    <option value="1">大件送达宿舍</option>
                    <option value="2">小件送达宿舍</option>
                    <option value="3">顺丰送达宿舍</option>
              		<option value="4">京东送达宿舍</option>
                </select>

            </div>
            <div>
                <input type="text" name="money" id="hmoney" style="display: none" value="">
            </div>
            <div class="mt10 mb20 center">
                <span class="ablock font12 cloc" style="height:auto;">总计：<span id="money">0</span>元</span> <input
                    type="submit" class="sub_btn"
                    style="margin:0;line-height:40px;letter-spacing:3px;background:#4caf50" value="提交订单">
            </div>
        </div>
    </form>




        <div class="xinxi" id="xinxi" style="display: none; width: 70%; height: 400px;background:#3bffde;border-radius: 20px;  position: absolute;top: 30%;left: 50%;transform: translate(-50%,-50%);">
           <div style="padding-top: 30px;width: 60%;margin: 0 auto;font-size: 17px; ">
           <p style="text-align:center;" id="exit">关闭</p>
                <form action="xinxi.php" method="post">
                                <div>
                                    姓名; <input type="text" name="name" style="border: 1px solid orange;border-radius: 5px">
                                </div>
                            <div>
                                电话; <input type="tel" name="tel" style="border: 1px solid orange;border-radius: 5px">
                            </div>
                            <div>
                                楼号;<select name="lou"style="width: 90%; background: none;border: none;border: 1px solid orange;border-radius: 5px">
                                    <option value="1">1号楼</option>
                              <option value="1">1号楼</option>
                              <option value="2">2号楼</option>
                              <option value="3">3号楼</option>
                              <option value="4">4号楼</option>
                              <option value="5">5号楼</option>
                              <option value="6">6号楼</option>
                              <option value="7">7号楼</option>
                              <option value="8">8号楼</option>
                              <option value="9">9号楼</option>
                              <option value="10">10号楼</option>
                              <option value="11">11号楼</option>
                              <option value="12">12号楼</option>
                                </select>
                            </div>
                            <div>
                                    宿舍号; <input type="text" name="sushe" style="border: 1px solid orange;border-radius: 5px" >
                            </div>
                            <div>
                                <input type="submit" value="保存信息" style="    background: #FF5722;
                                border: none;
                                width: 100px;
                                margin-left: 20px;
                                margin-top: 20px;
                                border-radius: 5px; ">
                            </div>
                            </form>


           </div> 
        </div>
        <script>
        var bs=document.getElementById("biaoshi");
        if(bs.innerHTML==0){
            document.getElementById("xinxi").style.display="block";
        }
        document.getElementById("xiugai").onclick=function(){
            document.getElementById("xinxi").style.display="block";
        }
        document.getElementById("exit").onclick=function(){
            document.getElementById("xinxi").style.display="none";
        }
        var guige=document.getElementById("guige");
      setInterval(function(){
       				 if(guige.value==1){
                        document.getElementById("hmoney").value=0.01;
                        document.getElementById("money").innerHTML=0.01;
                    }
                    if(guige.value==2){
                        document.getElementById("hmoney").value=2;
                        document.getElementById("money").innerHTML=2;
                    }
                    if(guige.value==3){
                        document.getElementById("hmoney").value=5;
                        document.getElementById("money").innerHTML=5;
                    }
                    if(guige.value==4){
                        document.getElementById("hmoney").value=5;
                        document.getElementById("money").innerHTML=5;
                    }



      },100);

            


        
       
        </script>
</body>

</html>